<form id="addOrUpdate" class="layui-form" style="display: none;padding-top: 30px;padding-right: 50px">
    <input type="hidden" name="id"/>
    <div class="layui-form-item">
        <label class="layui-form-label">菜单等级</label>
        <div class="layui-input-block">
            <select name="level" lay-filter="level" lay-verify="required" id="level">
                <option value="0" selected="selected">根菜单</option>
                <option value="1">一级菜单</option>
                <option value="2">二级菜单</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">菜单名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" placeholder="请输入" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">菜单地址</label>
        <div class="layui-input-block">
            <input type="text" name="link" lay-verify="required" placeholder="根菜用‘/’" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">菜单icon</label>
        <div class="layui-input-block">
            <input type="text" name="icon" autocomplete="off" class="layui-input" lay-verify="required" readonly
                   id="icon" onclick="chooseIcon()" style="cursor: pointer"/>
        </div>
    </div>

    <div class="layui-form-item" id="parent">
        <label class="layui-form-label">上级菜单</label>
        <div class="layui-input-block">
            <select name="pid" lay-filter="parent" id="pid" lay-search=""></select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" name="sort" lay-verify="required" placeholder="菜单显示顺序" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

<#--<div class="layui-form-item">-->
<#--<div class="layui-input-block" style="text-align: center">-->
<#--<button class="layui-btn" lay-submit="" lay-filter="addOrUpdate">提交</button>-->
<#--</div>-->
<#--</div>-->
</form>